#include <hxcpp.h>

#ifndef INCLUDED_JAttribute
#include <JAttribute.h>
#endif
#ifndef INCLUDED_JMethod
#include <JMethod.h>
#endif
#ifndef INCLUDED_haxe_Public
#include <haxe/Public.h>
#endif

Void JMethod_obj::__construct()
{
{
}
;
	return null();
}

JMethod_obj::~JMethod_obj() { }

Dynamic JMethod_obj::__CreateEmpty() { return  new JMethod_obj; }
hx::ObjectPtr< JMethod_obj > JMethod_obj::__new()
{  hx::ObjectPtr< JMethod_obj > result = new JMethod_obj();
	result->__construct();
	return result;}

Dynamic JMethod_obj::__Create(hx::DynamicArray inArgs)
{  hx::ObjectPtr< JMethod_obj > result = new JMethod_obj();
	result->__construct();
	return result;}

hx::Object *JMethod_obj::__ToInterface(const type_info &inType) {
	if (inType==typeid( ::haxe::Public_obj)) return operator ::haxe::Public_obj *();
	return super::__ToInterface(inType);
}


JMethod_obj::JMethod_obj()
{
}

void JMethod_obj::__Mark(HX_MARK_PARAMS)
{
	HX_MARK_BEGIN_CLASS(JMethod);
	HX_MARK_MEMBER_NAME(access_flags,"access_flags");
	HX_MARK_MEMBER_NAME(name_index,"name_index");
	HX_MARK_MEMBER_NAME(descriptor_index,"descriptor_index");
	HX_MARK_MEMBER_NAME(attributes_count,"attributes_count");
	HX_MARK_MEMBER_NAME(attributes,"attributes");
	HX_MARK_END_CLASS();
}

void JMethod_obj::__Visit(HX_VISIT_PARAMS)
{
	HX_VISIT_MEMBER_NAME(access_flags,"access_flags");
	HX_VISIT_MEMBER_NAME(name_index,"name_index");
	HX_VISIT_MEMBER_NAME(descriptor_index,"descriptor_index");
	HX_VISIT_MEMBER_NAME(attributes_count,"attributes_count");
	HX_VISIT_MEMBER_NAME(attributes,"attributes");
}

Dynamic JMethod_obj::__Field(const ::String &inName,bool inCallProp)
{
	switch(inName.length) {
	case 10:
		if (HX_FIELD_EQ(inName,"name_index") ) { return name_index; }
		if (HX_FIELD_EQ(inName,"attributes") ) { return attributes; }
		break;
	case 12:
		if (HX_FIELD_EQ(inName,"access_flags") ) { return access_flags; }
		break;
	case 16:
		if (HX_FIELD_EQ(inName,"descriptor_index") ) { return descriptor_index; }
		if (HX_FIELD_EQ(inName,"attributes_count") ) { return attributes_count; }
	}
	return super::__Field(inName,inCallProp);
}

Dynamic JMethod_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp)
{
	switch(inName.length) {
	case 10:
		if (HX_FIELD_EQ(inName,"name_index") ) { name_index=inValue.Cast< int >(); return inValue; }
		if (HX_FIELD_EQ(inName,"attributes") ) { attributes=inValue.Cast< Array< ::JAttribute > >(); return inValue; }
		break;
	case 12:
		if (HX_FIELD_EQ(inName,"access_flags") ) { access_flags=inValue.Cast< int >(); return inValue; }
		break;
	case 16:
		if (HX_FIELD_EQ(inName,"descriptor_index") ) { descriptor_index=inValue.Cast< int >(); return inValue; }
		if (HX_FIELD_EQ(inName,"attributes_count") ) { attributes_count=inValue.Cast< int >(); return inValue; }
	}
	return super::__SetField(inName,inValue,inCallProp);
}

void JMethod_obj::__GetFields(Array< ::String> &outFields)
{
	outFields->push(HX_CSTRING("access_flags"));
	outFields->push(HX_CSTRING("name_index"));
	outFields->push(HX_CSTRING("descriptor_index"));
	outFields->push(HX_CSTRING("attributes_count"));
	outFields->push(HX_CSTRING("attributes"));
	super::__GetFields(outFields);
};

static ::String sStaticFields[] = {
	String(null()) };

static ::String sMemberFields[] = {
	HX_CSTRING("access_flags"),
	HX_CSTRING("name_index"),
	HX_CSTRING("descriptor_index"),
	HX_CSTRING("attributes_count"),
	HX_CSTRING("attributes"),
	String(null()) };

static void sMarkStatics(HX_MARK_PARAMS) {
};

static void sVisitStatics(HX_VISIT_PARAMS) {
};

Class JMethod_obj::__mClass;

void JMethod_obj::__register()
{
	Static(__mClass) = hx::RegisterClass(HX_CSTRING("JMethod"), hx::TCanCast< JMethod_obj> ,sStaticFields,sMemberFields,
	&__CreateEmpty, &__Create,
	&super::__SGetClass(), 0, sMarkStatics, sVisitStatics);
}

void JMethod_obj::__boot()
{
}

